#include "Hal/Hal.h"
#include "lvgl.h"

void Hal::Init()
{
	Serial.begin(115200);

	Serial.println("");
    Serial.print(VERSION_FIRMWARE_NAME);
    Serial.print("System: " VERSION_SYSTEM_NAME);
	Serial.print("Hardware Version: " VERSION_HARDWARE);
    Serial.print("Software Version: " VERSION_SOFTWARE);
    Serial.print("Author: " VERSION_AUTHOR_NAME);
	Serial.println("\n");

	// pinMode(CONFIG_BAT_CHG_DET_PIN, INPUT);
    // pinMode(CONFIG_ENCODER_PUSH_PIN, INPUT);
    // /*电源使能保持*/
    // Serial.println("Power: Waiting...");
    // pinMode(CONFIG_POWER_EN_PIN, OUTPUT);
    // digitalWrite(CONFIG_POWER_EN_PIN, HIGH);
    // Serial.println("Power: ON");
}

void Hal::Update()
{
	lv_task_handler();
}